package org.example.hengshengexam;

public class Calc {
    // 计算两数之和
    public int sum(int a, int b) {
        return a + b;
    }
    // 计算两数之积
    public int product(int a, int b) {
        return a * b;
    }
    // 主方法测试
    public static void main(String[] args) {
        Calc calc = new Calc();
        int a = 5, b = 3;
        System.out.println(a + " + " + b + " = " + calc.sum(a, b));
        System.out.println(a + " × " + b + " = " + calc.product(a, b));
    }
}